\doxysection{GMesh.\+h}
\hypertarget{_g_mesh_8h_source}{}\label{_g_mesh_8h_source}\index{mesh/include/GMesh.h@{mesh/include/GMesh.h}}
\mbox{\hyperlink{_g_mesh_8h}{Go to the documentation of this file.}}
\begin{DoxyCode}{0}
\DoxyCodeLine{00001\ }
\DoxyCodeLine{00007\ \textcolor{preprocessor}{\#pragma\ once}}
\DoxyCodeLine{00008\ }
\DoxyCodeLine{00009\ \textcolor{preprocessor}{\#include\ <fstream>}}
\DoxyCodeLine{00010\ \textcolor{preprocessor}{\#include\ <string>}}
\DoxyCodeLine{00011\ \textcolor{preprocessor}{\#include\ <vector>}}
\DoxyCodeLine{00012\ \textcolor{preprocessor}{\#include\ <sstream>}}
\DoxyCodeLine{00013\ }
\DoxyCodeLine{00017\ \textcolor{keyword}{typedef}\ \textcolor{keywordtype}{unsigned}\ \textcolor{keywordtype}{int}\ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}};}
\DoxyCodeLine{00018\ }
\DoxyCodeLine{00026\ \textcolor{keyword}{class\ }\mbox{\hyperlink{class_g_mesh}{GMesh}}\{\ \ \textcolor{comment}{//\ Gmsh类是用来提取Gmsh网格文件中的网格信息}}
\DoxyCodeLine{00027\ \textcolor{keyword}{private}:}
\DoxyCodeLine{00028\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ numEntityBlocks,\ numNodes,\ minNodeTag,\ maxNodeTag;}
\DoxyCodeLine{00029\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ entityDim,\ entityTag,\ parametric,\ numNodesInBlock;}
\DoxyCodeLine{00030\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ numElements,\ minElementTag,\ maxElementTag;}
\DoxyCodeLine{00031\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ elementType,\ numElementsInBlock;}
\DoxyCodeLine{00032\ \ \ \ \ std::vector<uint>\ selectedNodes,\ selectedElements;}
\DoxyCodeLine{00033\ \ \ \ \ std::vector<std::vector<double>>\ coord\{\};}
\DoxyCodeLine{00034\ \ \ \ \ std::vector<std::vector<uint>>\ element\_P\{\};}
\DoxyCodeLine{00035\ \ \ \ \ std::vector<std::vector<uint>>\ element\_L\{\};}
\DoxyCodeLine{00036\ \ \ \ \ std::vector<std::vector<uint>>\ element\_S\{\};}
\DoxyCodeLine{00037\ \ \ \ \ std::vector<std::vector<uint>>\ element\_V\{\};}
\DoxyCodeLine{00038\ \textcolor{keyword}{public}:}
\DoxyCodeLine{00044\ \ \ \ \ \mbox{\hyperlink{class_g_mesh_ac69c0f8d1830105d20f647acef2ad8e6}{GMesh}}();}
\DoxyCodeLine{00050\ \ \ \ \ \mbox{\hyperlink{class_g_mesh_a6e42a8e60cdc354f9a4ab2226e2cf0c2}{\string~GMesh}}()\{\}}
\DoxyCodeLine{00057\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_g_mesh_a1e0f8e5639168033d51f43f603364dc0}{getMesh}}(std::string\ filename);}
\DoxyCodeLine{00063\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_g_mesh_a63962ef5902d1f7cc5f2264d026d0250}{clearMesh}}();}
\DoxyCodeLine{00070\ \ \ \ \ std::vector<std::vector<double>>\ \mbox{\hyperlink{class_g_mesh_a2b855296f6f8192b54f558f231859959}{getcoord}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ coord;\ \}}
\DoxyCodeLine{00078\ \ \ \ \ std::vector<std::vector<uint>>\ \mbox{\hyperlink{class_g_mesh_a501e0df80872490fca6df7d4bce0baf8}{getelement\_P}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_P;\ \}}
\DoxyCodeLine{00086\ \ \ \ \ std::vector<std::vector<uint>>\ \mbox{\hyperlink{class_g_mesh_a36d0fa646a9c75171d33c5664241af16}{getelement\_L}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_L;\ \}}
\DoxyCodeLine{00094\ \ \ \ \ std::vector<std::vector<uint>>\ \mbox{\hyperlink{class_g_mesh_afc02f89adbeb110307be27d828a80a11}{getelement\_S}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_S;\ \}}
\DoxyCodeLine{00102\ \ \ \ \ std::vector<std::vector<uint>>\ \mbox{\hyperlink{class_g_mesh_ae946defa2c97c62d091fb464ab27188d}{getelement\_V}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ element\_V;\ \}}
\DoxyCodeLine{00109\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ \mbox{\hyperlink{class_g_mesh_acd8521215d959cc09c24b6663372c93c}{getnumNodes}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ numNodes;\ \}}
\DoxyCodeLine{00116\ \ \ \ \ \mbox{\hyperlink{_g_mesh_8h_a91ad9478d81a7aaf2593e8d9c3d06a14}{uint}}\ \mbox{\hyperlink{class_g_mesh_ae8843ee00e343c3f78c597d2327282c4}{getnumElements}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ numElements;\ \}}
\DoxyCodeLine{00122\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_g_mesh_abbfc504f3958c3d39031867fcb756ac4}{setselectedNodes}}(std::vector<uint>\ selectedNodes)\ \{\ this-\/>selectedNodes\ =\ selectedNodes;\ \}}
\DoxyCodeLine{00128\ \ \ \ \ \textcolor{keywordtype}{void}\ \mbox{\hyperlink{class_g_mesh_aa1164636732ec92a6ac4acb2de413dd0}{setselectedElements}}(std::vector<uint>\ selectedElements)\ \{\ this-\/>selectedElements\ =\ selectedElements;\ \}}
\DoxyCodeLine{00135\ \ \ \ \ std::vector<uint>\ \mbox{\hyperlink{class_g_mesh_a35ed0c043375f23a5e7f661e22ddb5b3}{getselectedNodes}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ selectedNodes;\ \}}
\DoxyCodeLine{00142\ \ \ \ \ std::vector<uint>\ \mbox{\hyperlink{class_g_mesh_a1050100fa0462e18ee65584d6b57e4cf}{getselectedElements}}()\textcolor{keyword}{\ const\ }\{\ \textcolor{keywordflow}{return}\ selectedElements;\ \}}
\DoxyCodeLine{00143\ \};}

\end{DoxyCode}
